import { getUserInfo, setStorageUserInfo } from "@/utils/storage"

export default {
    namespaced:true,
    state() {
        return {
            userInfo: getUserInfo()
        }
    },
    mutations: {
        setUserInfo(state,obj) {
            state.userInfo = obj
            setStorageUserInfo(obj)
        }
    },
    actions: {

    },
    getters: {

    }
}